﻿using System;
using System.Collections.Generic;
using System.Text;
using TalksLog.Abstraction;
using TalksLog.Entities;

namespace TalksLog.Abstraction.Repositories
{
    public abstract class AccountRepositoryBase : RepositoryBase<Account>
    {
        public abstract bool ExistsSameEmail(Account account);
        public abstract bool ExistsSameName(Account account);
        public abstract bool ExistsSameName(int id, string name);
        public abstract Account Find(string email, string password);
        public abstract void UpdatePassword(int id, string newPassword);
        public abstract void UpdateName(int id, string newName);
    }
}
